package com.zhaowt.mapper;

import com.zhaowt.pojo.SysUserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by 赵文韬 on 2022/12/14 16:24
 */
public interface SysUserInfoMapper {
    @Select("select * from sys_user_info where u_id = #{id}")
    SysUserInfo findById(Long id);
    @Select("select * from sys_user_info where  username = #{username}")
    SysUserInfo findByUserName(String username);
    @Select("select * from sys_user_info where  phone = #{phone}")
    SysUserInfo findByPhone(String phone);
    @Select("select * from sys_user_info where  email = #{email}")
    SysUserInfo findByEmail(String email);
    @Select("select * from sys_user_info")
    List<SysUserInfo> findAll();
    void addUser(SysUserInfo sysUserInfo);
}
